package com.autotest.nore.service;


import com.autotest.nore.mapper.FunctionMapper;
import com.autotest.nore.dto.FunctionDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(rollbackFor = Exception.class)
public class FunctionService {

    @Autowired
    private FunctionMapper functionMapper;

    public List<FunctionDTO> getFunctionList() {
        return functionMapper.getFunctionList();
    }
    public List<FunctionDTO> getFunctionListByType(String type) {
        return functionMapper.getListByType(type);
    }

    public List<String> getType(){
        return functionMapper.getType();
    }



}
